﻿using CTP.CRM.Core.Common.Dto;

namespace CTP.CRM.Core.Provider
{
    /// <summary>
    /// 加密服务提供者
    /// </summary>
    public interface IAsymmetricEncryptionProvider
    {
        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="ciphertext"></param>
        /// <returns></returns>
        public BasicResponseDto DeEncryption(string ciphertext);

        /// <summary>
        /// 加密
        /// </summary>
        /// <param name="Content"></param>
        /// <returns></returns>
        public BasicResponseDto Encryption(string Content);

        /// <summary>
        /// 获取新的公钥私钥
        /// </summary>
        /// <returns></returns>
        public BasicResponseDto GetNewKeys();

        /// <summary>
        /// MD5加密
        /// </summary>
        /// <param name="Content"></param>
        /// <param name="uppercase"></param>
        /// <returns></returns>
        public BasicResponseDto MD5Encryption(string Content, bool uppercase);
    }
}
